//
//  PublicHeader.h
//  PCNews
//
//  Created by PengchengWang on 16/3/1.
//  Copyright © 2016年 pengchengWang. All rights reserved.
//

#import "DrawerViewController.h"
#ifndef PublicHeader_h
#define PublicHeader_h
#define kLeanCloudID @"qGL1mRbunFK9NdBlvNzwcUAh-gzGzoHsz"
#define kLeanCloudKey @"eRtSdj1CWJBR79cLmX2rUdGE"
#define kUMKey @"56deb42fe0f55a5d8d002801"

#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
///tableView头视图轮播图高度
#define kUpImageHeight 150
///最新列表头条（最上面三张大图）
#define kNewsLoopImageURL @"http://m.mydrivers.com/app/newstoppic.aspx?id=141077031173.913300"
#define kImageUrlNew @"http://m.mydrivers.com/app/newstoppic.aspx?id=145679861073.418488"
#define kImageUrlHard @"http://m.mydrivers.com/app/newstoppic.aspx?t=168"
#define kListDataHard @"http://m.mydrivers.com/app/newslist.aspx?tid=1&minId=0&ver=2.1&temp=145679900043.677307"
#define kImageUrlSoft @"http://m.mydrivers.com/app/newstoppic.aspx?t=169"
#define kListDataSoft @"http://m.mydrivers.com/app/newslist.aspx?tid=2&minId=0&ver=2.1&temp=145699826282.112000"
#define kImageUrlPhone @"http://m.mydrivers.com/app/newstoppic.aspx?t=170"
#define kListDataPhone @"http://m.mydrivers.com/app/newslist.aspx?tid=3&minId=0&ver=2.1&temp=145679929372.216705"
#define kImageUrlTech @"http://m.mydrivers.com/app/newstoppic.aspx?t=171"
///最新列表
#define kNewsInfoURL @"http://m.mydrivers.com/app/newslist.aspx?tid=0&minId=0&ver=2.1&temp=141077031699.344391"

//版本号
#define kVersionNumber @"版本号:V1.0"

//颜色
#define kColor(R, G, B, A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]
/**
 *  宏定义单例
 */
#define single_interface(className)\
+(instancetype)share##className;
#define single_implementantion(className)\
static className *_instance = nil;\
+(instancetype)share##className{\
static dispatch_once_t onceToken;\
dispatch_once(&onceToken, ^{\
_instance = [[[self class] alloc]init];\
});\
return _instance;\
}\
+(instancetype)allocWithZone:(struct _NSZone *)zone{\
static dispatch_once_t onceToken;\
dispatch_once(&onceToken, ^{\
_instance = [super allocWithZone:zone];\
});\
return _instance;\
}\

/**
 *  上线模式不打印
 */
#ifndef __OPTIMIZE__
#define NSLog(...) NSLog(__VA_ARGS__)
#else
# define NSLog(...) {}
#endif

#endif /* PublicHeader_h */
